<div class="row">
	<div class="col-sm-12">
	
    	<div>
    		<a href="<?php echo DOMAIN_NURSERY?>/admin/add/" class="btn btn-sm">添加管理员</a>
    	</div>
		<div class="space"></div>
        
		<table class="table table-striped table-bordered table-hover">
			<tr>
				<th>登录账号</th>
				<th>管理员昵称</th>
				<th>管理员角色</th>
				<th>管理员状态</th>
				<th>操作</th>
			</tr>
			<?php if( !empty( $admin_all )):?>
				<?php foreach ( $admin_all as $e ):?>
					<tr>
						<td><?php echo $e['username']?></td>
						<td><?php echo $e['nickname'];?></td>
						<td><?php echo $e['role_name'];?></td>
						<td><?php echo ($e['status']==-1)?"已禁用":"已启用"?></td>
						<td>
							<?php if($e['role_name']<>'超级管理员'){ ?>
							<a  href="<?php echo DOMAIN_NURSERY?>/admin/edit/<?php echo $e['id']?>">编辑</a>

							<a  href="<?php echo DOMAIN_NURSERY?>/admin/delete/<?php echo $e['id']?>" onclick="return confirm('确定要删除?')">删除</a>
							<?php }else{ echo '-';}?>

						</td>
					</tr>
				<?php endforeach;?>
			<?php endif;?>
		</table>
		
		<div class="float_right">
			<?php echo $pagelink;?>
		</div>
	</div>
</div>
<!--content-->